package downpacket

import "gitee.com/yanwc/ebike-xiaoan-device/internal/field"

type SetBtParamReq struct {
	Token uint32 `json:"token"`
	Name  string `json:"name"`
}

func NewSetBtParamReq(sn field.SerialNumber, req SetBtParamReq) *Req[SetBtParamReq] {
	return &Req[SetBtParamReq]{
		CmdWord: SetBtParamCommandWord,
		MsgNo:   sn,
		Param:   req,
	}
}
